import request from '@/utils/request'

export function getLineAlarmData(data) {
    return request({
        url: '/swla2/gisLine/getLineAlarmData',
        method: 'post',
        data: data
    })
}

export function getLineFeatureData(data) {
    return request({
        url: '/swla2/gisLine/getLineFeatureData',
        method: 'post',
        data: data
    })
}

export function getPipeLengthData(data) {
    return request({
        url: '/swla2/gisLine/getPipeLengthData',
        method: 'post',
        data: data
    })
}

export function testLine(query) {
    return request({
        url: '/swla2/gisLine/testDygq',
        method: 'get',
        params: query
    })
}

// 查询GIS管网-管线列表
export function listGisLine(query) {
    return request({
        url: '/swla2/gisLine/list',
        method: 'get',
        params: query
    })
}

// 查询GIS管网-管线详细
export function getGisLine(id) {
    return request({
        url: '/swla2/gisLine/' + id,
        method: 'get'
    })
}

// 新增GIS管网-管线
export function addGisLine(data) {
    return request({
        url: '/swla2/gisLine',
        method: 'post',
        data: data
    })
}

// 修改GIS管网-管线
export function updateGisLine(data) {
    return request({
        url: '/swla2/gisLine',
        method: 'put',
        data: data
    })
}

// 删除GIS管网-管线
export function delGisLine(id) {
    return request({
        url: '/swla2/gisLine/' + id,
        method: 'delete'
    })
}
